import { getPropsList } from "../attr"
import EventBus from "../../EventBus"
import store from "@/store"
const attr = ({tabList = []}) => [
  {
    type: "select",
    label: "默认值",
    fieldName: "value",
    options: tabList,
    extraConfig: {
      className: "row",
    },
    dataType: String | Number,
  },
  {
    type: "button",
    label: "修改数据",
    fieldName: "list",
    extraConfig: {
      className: "row",
    },
    onClick: (data) => {
      console.log(data)
      EventBus.$emit("editTagsList")
    },
    dataType: Array,
  },

]
export function getProps(){
  return getPropsList(attr({}))
}

export default {
  attr,
  // isNoCommon: true
}


